home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1UUKB4S (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  687 b   |  24 lines

  1. package com.sun.java.swing.text;
  2.  
  3. public class Segment {
  4.    public char[] array;
  5.    public int offset;
  6.    public int count;
  7.  
  8.    public Segment() {
  9.       this.array = null;
  10.       this.offset = 0;
  11.       this.count = 0;
  12.    }
  13.  
  14.    public Segment(char[] array, int offset, int count) {
  15.       this.array = array;
  16.       this.offset = offset;
  17.       this.count = count;
  18.    }
  19.  
  20.    public String toString() {
  21.       return new String(this.array, this.offset, this.count);
  22.    }
  23. }
  24.